#include"Fraction.h"
#include<iostream>
#include<cstdlib>
namespace CPPBook{
	Fraction::Fraction()
		:numer(0), denom(1)
	{
	}
	Fraction::Fraction(int n) : numer(n), denom(1)
	{
	}
	Fraction::Fraction(int n, int d) : numer(n), denom(d)
	{
		if (d == 0){
			std::cerr<<"error: denominat or is 0"<< std::endl;
		}
	}
	void Fraction::print(){
		std::cout<<numer<<'/'<<denom<<std::endl;
	}
}//END namespace CPPBook